class Doctor  implements Comparable {
    String name
    String NPI; // National Provider (health) Identifier
    String location
    long latLong
    String specialty

    Patient patient; // no delete cascade
   
    static constraints = {
        NPI(size: 1..40, blank:false, unique: true)
        name(blank:false)
        location(inList:['Windsor','Simsbury','Manchester','West Hartford'])
        specialty(inList:['Cardiology','Chemotherapy', 'Dermatology','Geriatrics','Internal Medicine','Plastic Surgery'])
    }
    public int compareTo(Object obj) {
        return created <=> obj.created
    }
    String toString() { "${name}-${NPI}}" }
}
